package com.bdqn.t350.ch11.service.imp;

import com.bdqn.t350.ch11.bean.Right;
import com.bdqn.t350.ch11.bean.User;
import com.bdqn.t350.ch11.mapper.RightMapper;
import com.bdqn.t350.ch11.service.RightService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class RightServiceImp implements RightService {

    @Resource
    RightMapper rightMapper;

    @Override
    public List<Right> selectList() {
        return rightMapper.selectList();
    }

    @Override
    public List<Right> getRightByUserName(User user) {
        return rightMapper.getRightByUserName(user);
    }
}
